//
//  AddMeterModel.swift
//  Employee
//
//  Created by tancheng on 2018/6/21.
//  Copyright © 2018年 remotevillage. All rights reserved.
//

import Foundation
import Photos
//表单，每一行的输入类型
enum TableParamType: Int {
    case select        //选择器
    case number        //数字
    case singleText    //单行文本
    case multipleText  //多行文本
    case multipleSets  //多组数据
    case file          //文件选择
    case image         //图片选择
}

struct AddMeterModel {
    
    var type: TableParamType = .singleText
    
    var name = [""]
    
    var placeHolder = [""]
    
    var inputText = [""] //已输入或已选择的文本
    
    var inputId = [""]
    
    var textCount = -1  // 小于0位不限制，等于0禁止输入，

    var images: [PHAsset] = []
    
}

//添加仪表的参数model
struct AddMeterSend {
    
    var ascription = ""
    
    var houseId = ""
    
    var type = ""
    
    var meterNumber = ""
    
    var firstRead = ""
    
    var regionId = ""
    
    var remark = ""
    
    var imageIds = ""
    
}





